package com.first.nell.data

import com.first.nell.ProjectConfig
import com.first.nell.utils.UserStateUtil
import com.first.nell.utils.analytics.util.AnalyticsUtil

open class ReqBase(
    var token: String = "",//token
    var userId: String = "",//userId
    var androidId: String = "",//安卓id
    var advertId: String = "",//广告id
    var version: String = "",//app版本号
    var product: String = "",//产品
    var clientType: String = "",//终端类型
    var aduid: String = "",//aduid
    var aduidPath: String = "",//aduid 路径
    var isLimitAdTrackingEnabled: String = "",//是否限制广告id，1是 0否
    var showLoading: Boolean = true,//是否显示loading
    var apiVersion: String = "v3",//接口版本号
) {
    init {
        this.token = UserStateUtil.mFirstNellToken
        this.userId = UserStateUtil.mFirstNellUserId
        this.androidId = AnalyticsUtil.getAndroidId()
        this.advertId = AnalyticsUtil.getAdId()
        this.isLimitAdTrackingEnabled = AnalyticsUtil.getAdEnabled().toString()
        this.aduid = AnalyticsUtil.getAdId()
        this.aduidPath =AnalyticsUtil.getAndroidId()
        this.version = ProjectConfig.NARSCASH_Version.toString()
        this.product = ProjectConfig.NARSCASH_Product
        this.clientType = "ANDROID"
    }
}